<template>
 <div>
  <h2>我是子组件</h2>
  <h4>我是传过来的内容{{value}}</h4>
  <button @click="fn">点击修改内容</button>
 </div>
</template>

<script>
 export default {
   name: '',
   props: {
    value:String
   },
   methods:{
    fn(){
        this.$emit('input','abc')
    },
   },
   
 }
</script>

<style scoped lang='less'>

</style>